home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / nonport / rawout.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.1 KB  |  44 lines

  1. #define CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef  raw_output
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_rawout = "$Header: C:\CURSES\nonport\RCS\rawout.c 2.1 1993/06/18 20:22:13 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   raw_output()    - enable raw output mode
  15.  
  16.   PDCurses Description:
  17.      This routine enables the output of raw characters using the
  18.      'standard' *add* and *ins* curses functions.
  19.      To force 8 bit output and no translation of control characters,
  20.      invoke raw_output() with bf as TRUE.  To force 7 bit output and
  21.      translation of control characters, invoke raw_output() with bf
  22.      as FALSE.
  23.  
  24.   PDCurses Return Value:
  25.      This function returns OK.
  26.  
  27.   PDCurses Errors:
  28.      No errors are defined for this function.
  29.  
  30.   Portability:
  31.      PDCurses    int raw_output( bool );
  32.  
  33. **man-end**********************************************************************/
  34.  
  35. int    raw_output(bool bf)
  36. {
  37. #ifdef PDCDEBUG
  38.     if (trace_on) PDC_debug("raw_output() - called\n");
  39. #endif
  40.  
  41.     _cursvar.raw_out = bf;
  42.     return( OK );
  43. }
  44.